package com.nbjtjc.common.bean;


public enum TASKSTATUS {
    PLAN("计划中",-1),UNSTART("未开始",0) ,STARTING("'进行中'",1),OVER("'已结束'",2)
    ,ACCEPT("'验收完成'",3);
    private String name;
    private Integer code;
    public static String getName(Integer code){
        for(TASKSTATUS taskstatus : TASKSTATUS.values()){
            if(taskstatus.getCode().equals(code)){
                return taskstatus.getName();
            }
        }
        return "";
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    TASKSTATUS(String name, Integer code) {
        this.name = name;
        this.code = code;
    }
}
